package com.nuit.cxl.ch2.service;


import com.nuit.cxl.ch2.dao.HelloWorldMapper;
import com.nuit.cxl.ch2.vo.Student;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

//拿到数据后 进行处理
@Service("HelloWorldServiceImpl")
public class HelloWorldServiceImpl implements HelloWorldService{

    @Resource
    public HelloWorldMapper helloWorldMapper;

    @Override
    public Student getStudent(){
        Student student = helloWorldMapper.getOneStudent();
        student.setAge(16);
        return student;
    }
}
